/*
 * @Author: xiehangyun 
 * @Date: 2025-05-16 18:16:33 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2025-09-11 17:29:25
 */
import Api from "src/api/Api";

//接口
class IssueCouponApi extends Api {

    constructor() {
        super();
    }

    // 获取所有可用的券类型列表
    getCouponTypes() {
        return this._get("/coupon/issue/couponTypes");
    }


    //管理员发券接口
    issueCoupon(data: { targetUserId: string, couponCount: number, couponTypeId: number }) {
        return this._from("/coupon/issue/issueCoupon", data);
    }



}
const issueCouponApi = new IssueCouponApi();
export default issueCouponApi;